package com.linkage.lcims.base.dao.dialup.impl;

import java.util.Map;

import com.linkage.lcims.base.dao.HibernateBaseDAOImpl;
import com.linkage.lcims.base.dao.dialup.interfaces.DialupUserDAO;
import com.linkage.lcims.base.po.dialup.BDialupUser;
import com.linkage.util.exception.DAOException;

public class DialupUserDAOImpl extends HibernateBaseDAOImpl implements
		DialupUserDAO {

	public void deleteDialupUser(BDialupUser dialupUser) throws DAOException {
		super.delete(dialupUser);
	}

	public BDialupUser getDialupUser(String username) throws DAOException {
		return (BDialupUser) super.getByID(BDialupUser.class, username);
	}

	public void saveDialupUser(BDialupUser dialupUser) throws DAOException {
		super.save(dialupUser);
	}

	public void updateDialupUser(BDialupUser dialupUser) throws DAOException {
		super.merge(dialupUser);
	}

	public void updateDialupUserFields(String username,
			Map<String, Object> fields) throws DAOException {
		super.updateField(BDialupUser.class.getName(), username, fields);
	}

}
